Skip to content

Instantly share code, notes, and snippets.

@max10rogerio
max10rogerio / slugify.ts
Last active March 10, 2026 18:47
Typescript slug function
// MIT License
// Copyright (c) 2023 Max Rogério
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@seunggabi
seunggabi / semantic-branch-names.md
Last active March 10, 2026 18:45
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@skrymets
skrymets / Cornell's Notes Template.md
Last active March 10, 2026 18:44
Cornell Note Template for Obsidian
cssclass
cornell-note
Cues

Notes

The Cornell Note-taking System is a popular and effective method for organizing and summarizing information during lectures, readings, or any other form of learning.

@iam-veeramalla
iam-veeramalla / llms_on_cpu.md
Created March 8, 2026 19:08
Run LLMs locally on CPU Architecture

Run LLMs Locally Using llama.cpp

This tutorial shows how to run Large Language Models locally on your laptop using llama.cpp and GGUF models.

It works on:

  • macOS
  • Linux
  • Windows
@tophf
tophf / patch-chrome-mv2-2025-11-18.ps1
Last active March 10, 2026 18:44
Enables ManifestV2 for extensions in Chrome 140+
<# 1. To patch dll in a protected folder like "c:\program files" run this script as Administrator.
2. If your Windows isn't configured to run ps1 files, you can run it from command prompt like this:
powershell -ep bypass -noprofile "patch-chrome-mv2.ps1"
#>
param([string]$dll, [string]$dir = $pwd)
function doPatch([string]$path, [string]$pathLabel = '') {
$dll = $script:dll = if ($path.EndsWith('\')) { Join-Path $path chrome.dll } else { $path }
if (!(Test-Path -literal $dll)) { return }
$localAppData = [Environment]::GetFolderPath('LocalApplicationData')
@ricardodantas
ricardodantas / validacao+mascara.js
Last active March 10, 2026 18:44
Máscara e validação de RG, CNPJ, CPF, etc...
// JavaScript Document
// adiciona mascara para rg
// Cada estado têm regras e quantidades diferentes de números no registro. Por isso,
// não há uma maneira confiável de fazer a validação do mesmo.
function MascaraRg(v0,errChar='?'){
const v = v0.toUpperCase().replace(/[^\dX]/g,'');
return (v.length==8 || v.length==9)?
v.replace(/^(\d{1,2})(\d{3})(\d{3})([\dX])$/,'$1.$2.$3-$4'):
(errChar+v0)
@chenhunghan
chenhunghan / gist.md
Last active March 10, 2026 18:41
One Prompt to Save 90% Context for Any MCP Server

Local Code Mode for MCP

Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.

MCP isn't dead — but we need to design MCP tools with the context window in mind.

@dollspace-gay
dollspace-gay / VSDD.md
Last active March 10, 2026 18:38
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@llaughlin
llaughlin / dark-custom.css
Last active March 10, 2026 18:31
JSON Viewer Pro
#rbrahul-awesome-json{
font-size: 10pt;
}
.property{
color: #86AED6;
}
.json-literal-numeric{
color: #D6AED6;